package com.example.demo.task.impl;

import com.example.demo.task.TaskExecutor;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component("demoTask") // 任务标识（用于动态调用）
public class DemoTask implements TaskExecutor {
    @Override
    public void execute(Map<String, Object> params) {
        System.out.println("执行Demo任务：" + System.currentTimeMillis());
    }
}